package com.gxz.redis.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.gxz.redis.domain.UserInfo;



/*****
 * @author guxz4
 * @Description: com.itheima.dao.UserInfoDao
 ****/
@Mapper
public interface UserInfoDao {

    /***
     * 根据name获取用户信息
     * @param name
     * @return
     */
    @Select("select * from user_info where username=#{name}")
    UserInfo one(String name);
}
